package day4.demo;

public abstract class Product {

	private String name;
	
	public Product(){}
	
	public Product(String name){this.name = name;}
	
	
	
	public String getName() {
		return name;
	}

	//子类必须重写 toString() 方法
	public abstract String toString();
	
}
